/**
 * Generate time : 2011-11-15 4:24:35
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLTernateNote table comment : *三违通知书
 */
public class ZMCLTernateNote extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdNoteCode = " "; /* 通知书编号 */
	private String fdNoteDate = " "; /* 通知日期 */
	private String fdNoteReason = " "; /* 通知原因 */
	private String fdDeregulationDepartment = " "; /* 三违单位名称 */
	private String fdDeregulationPeople = " "; /* 三违人员 */
	private String fdNoteSendDepartment = " "; /* 发送单位 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("通知书编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("通知日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteReason");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("通知原因");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDeregulationDepartment");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("三违单位名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDeregulationPeople");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("三违人员");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteSendDepartment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("发送单位");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLTernateNote() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdNoteCode - 通知书编号
	 * 
	 * @return the fdNoteCode
	 */
	public String getFdNoteCode() {
		return this.fdNoteCode;
	}

	/**
	 * set the fdNoteCode - 通知书编号
	 */
	public void setFdNoteCode(String fdNoteCode) {
		this.fdNoteCode = fdNoteCode;
	}

	/**
	 * get the fdNoteDate - 通知日期
	 * 
	 * @return the fdNoteDate
	 */
	public String getFdNoteDate() {
		return this.fdNoteDate;
	}

	/**
	 * set the fdNoteDate - 通知日期
	 */
	public void setFdNoteDate(String fdNoteDate) {
		this.fdNoteDate = fdNoteDate;
	}

	/**
	 * get the fdNoteReason - 通知原因
	 * 
	 * @return the fdNoteReason
	 */
	public String getFdNoteReason() {
		return this.fdNoteReason;
	}

	/**
	 * set the fdNoteReason - 通知原因
	 */
	public void setFdNoteReason(String fdNoteReason) {
		this.fdNoteReason = fdNoteReason;
	}

	/**
	 * get the fdDeregulationDepartment - 三违单位名称
	 * 
	 * @return the fdDeregulationDepartment
	 */
	public String getFdDeregulationDepartment() {
		return this.fdDeregulationDepartment;
	}

	/**
	 * set the fdDeregulationDepartment - 三违单位名称
	 */
	public void setFdDeregulationDepartment(String fdDeregulationDepartment) {
		this.fdDeregulationDepartment = fdDeregulationDepartment;
	}

	/**
	 * get the fdDeregulationPeople - 三违人员
	 * 
	 * @return the fdDeregulationPeople
	 */
	public String getFdDeregulationPeople() {
		return this.fdDeregulationPeople;
	}

	/**
	 * set the fdDeregulationPeople - 三违人员
	 */
	public void setFdDeregulationPeople(String fdDeregulationPeople) {
		this.fdDeregulationPeople = fdDeregulationPeople;
	}

	/**
	 * get the fdNoteSendDepartment - 发送单位
	 * 
	 * @return the fdNoteSendDepartment
	 */
	public String getFdNoteSendDepartment() {
		return this.fdNoteSendDepartment;
	}

	/**
	 * set the fdNoteSendDepartment - 发送单位
	 */
	public void setFdNoteSendDepartment(String fdNoteSendDepartment) {
		this.fdNoteSendDepartment = fdNoteSendDepartment;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNoteCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteCode")), fdNoteCode));
		setFdNoteDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteDate")), fdNoteDate));
		setFdNoteReason(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteReason")), fdNoteReason));
		setFdDeregulationDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDeregulationDepartment")), fdDeregulationDepartment));
		setFdDeregulationPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDeregulationPeople")), fdDeregulationPeople));
		setFdNoteSendDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteSendDepartment")), fdNoteSendDepartment));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdNoteCode", StringUtils.toString(fdNoteCode, eiMetadata.getMeta("fdNoteCode")));
		map.put("fdNoteDate", StringUtils.toString(fdNoteDate, eiMetadata.getMeta("fdNoteDate")));
		map.put("fdNoteReason", StringUtils.toString(fdNoteReason, eiMetadata.getMeta("fdNoteReason")));
		map.put("fdDeregulationDepartment", StringUtils.toString(fdDeregulationDepartment, eiMetadata.getMeta("fdDeregulationDepartment")));
		map.put("fdDeregulationPeople", StringUtils.toString(fdDeregulationPeople, eiMetadata.getMeta("fdDeregulationPeople")));
		map.put("fdNoteSendDepartment", StringUtils.toString(fdNoteSendDepartment, eiMetadata.getMeta("fdNoteSendDepartment")));

		return map;

	}
}